package net.neptech;

import net.neptech.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableFeignClients
@EntityScan("net.neptech.model.ipc")
public class IPCApp{
;
    public static void main( String[] args )    {

        ConfigurableApplicationContext context = SpringApplication.run(IPCApp.class, args);
        System.out.println( "Hello World!" );
        RedisService redisService = (RedisService) context.getBean("redisService");
        System.out.println(redisService);
    }
}
